/**
 * 
 */

var inquiryUtil = {
		
		saveSign : function(inquiryId, signInfo){
       	 var data = {};
       	 data.inquiryId = inquiryId;
       	 data.signInfo = signInfo;
 
       	 $.ajax({
                url: 'inquiry/update/apply/tbl',
                type: 'post',
                data: data,
                dataType:"json",
                success: function (resp) {
                    if (resp.code === 'SUCCESS') {
                       console("更新申请表信息:", resp.code);
                    } else {
                    	if(resp.code == 'SID_CHECK_FAIL'){
  							location.href = resp.data;
  							return;
  						}
                   	   console("更新申请表信息失败:", resp);
                    }
                }
            });
       },
       
       
       appendSignScript : function (ifrDoc){
    	   
    	   var script = ifrDoc.createElement("script");
           script.type = "text/javascript";
           try {
             script.appendChild(ifrDoc.createTextNode("parent.hw.load('HWPenSign','applicationContainer')"));
           } catch (ex) {
             script.text("parent.hw.load('HWPenSign','applicationContainer')");
           }
           
           ifrDoc.body.appendChild(script);
       },
       
       preImg : function(id){
    	   layer.photos({
    		   photos:'#' + id,
    		   shift:5
    	   });
       }
		
};